package org.wendu.wdoa.dto;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import org.wendu.wdoa.common.page.PageParam;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@AllArgsConstructor
@NoArgsConstructor
public class InfoDto extends PageParam {

    private Integer e_id;
    private Integer d_id;
    private String d_name;
    private String e_name;
    private Integer e_sex;
    private Date e_birth_start;
    private Date e_birth_end;


    public Integer getD_id() {
        return d_id;
    }

    public void setD_id(Integer d_id) {
        this.d_id = d_id;
    }

    public Integer getE_id() {
        return e_id;
    }

    public void setE_id(Integer e_id) {
        this.e_id = e_id;
    }

    public String getD_name() {
        return d_name;
    }

    public void setD_name(String d_name) {
        this.d_name = d_name;
    }

    public String getE_name() {
        return e_name;
    }

    public void setE_name(String e_name) {
        this.e_name = e_name;
    }

    public Integer getE_sex() {
        return e_sex;
    }

    public void setE_sex(Integer e_sex) {
        this.e_sex = e_sex;
    }


    @DateTimeFormat(pattern = "yyyy-MM-dd")
    public Date getE_birth_start() {
        return e_birth_start;
    }

    public void setE_birth_start(Date e_birth_start) {
        this.e_birth_start = e_birth_start;
    }
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    public Date getE_birth_end() {
        return e_birth_end;
    }

    public void setE_birth_end(Date e_birth_end) {
        this.e_birth_end = e_birth_end;
    }
}
